#include "loginset.h"
#include "ui_loginset.h"
#include "loginset.h"

loginSet::loginSet(QString &ip,QString &port, QWidget *parent)
    : QWidget(parent),ip(ip),port(port)
    , ui(new Ui::loginSet)
{
    qDebug() << ip;
    qDebug() << port;
    ui->setupUi(this);
    setWindowFlag(Qt::Window);
}


loginSet::~loginSet()
{
    this->ip = "SERVER=" + ui->ipTxt->text() + ";";
    this->port = "PORT=" + ui->portTxt->text() + ";";
    qDebug() << "设置页面关闭";
    qDebug() << ip;
    qDebug() << port;
    delete ui;
}


void loginSet::on_yes_clicked()
{
    this->close();
    delete this;
}


